import request from "../utils/request";
// 秒杀接口
export const getsecKill = function (params) {
    return request("/Interface/recommendlists",params,'post','form')
}
// 获取推荐列表接口
export const getRecommend = function (params) {
    return request("/Interface/recommendlists",params,'post','form')
}
// 登录接口
export const Login = function (params) {
    return request("/Member/MobLogin",params,'post','form')
}
//  搜索接口
export const Search = function (params) {
    return request("/search/index",params,'post','form')
}
// 购物车接口user_id:Number
export const CartList = function (params) {
    return request("/Cart/lists",params,'post','form')
}
// 添加购物车  /cart/add
/**
 *  user_id: 956741
    shop_id: 422
    goods_id: 9700
    sku_id: 
    goods_num: 1
    active_type: 0
 */
export const CartAdd = function (params) {
    return request("/cart/add",params,'post','form')
}
// 商店全选接口
/**
 * 
 * @param {user_id: 956741, sku_id: ,shop_all:1全选、0全不选,shop_id: 422} params 
 */
export const StoreAll = function (params) {
    return request("/cart/is_checked",params,'post','form')
}